{"version":3,"sources":["core_autosave.js"],"names":["window","topWindow","BX","PageObject","getRootWindow","CAutoSave","params","this","FORM_NAME","form","FORM_MARKER","form_marker","FORM_ID","form_id","PERIOD","period","RESTORE_DATA","TIMERS","bInited","bRestoreInProgress","DISABLE_STANDARD_NOTIFY","NOTIFY_CONTEXT","ready","defer","Prepare","garbage","delegate","Clear","type","isNotEmptyString","formMarker","name","addCustomEvent","proxy","Reset","prototype","i","isString","FORM","document","forms","isDomNode","BXAUTOSAVE","bind","ClearTimers","elements","length","RegisterInput","setTimeout","_PrepareAfter","inp","Init","UnRegisterInput","unbind","onCustomEvent","id","Math","random","removeCustomEvent","Restore","o","_NotifyContext","Notify","message","util","urlencode","clearTimeout","TimerHandler","setInterval","Save","clearInterval","isNodeInDom","j","el","data","autosave_id","form_data","n","v","t","toLowerCase","checked","value","substring","options","selected","push","indexOf","_encodeName","ajax","post","bitrix_sessid","_Save","clicker","_decodeData","undefined","isArray","shift","bChange","fireEvent","q","in_array","hideNotify","parentNode","WindowManager","Get","adminPanel","admin","panel","exec","replace","str_pad_left","charCodeAt","toString","_decodeName","String","fromCharCode","parseInt","d"],"mappings":"CAAA,SAAUA,GACT,IAAIC,EAAYC,GAAGC,WAAWC,gBAC/B,GAAIF,GAAGG,WAAaJ,EAAUC,GAAGG,UAAW,OAG5CH,GAAGG,UAAY,SAASC,GAEvBC,KAAKC,UAAYF,EAAOG,KACxBF,KAAKG,YAAcJ,EAAOK,YAC1BJ,KAAKK,QAAUN,EAAOO,QAEtBN,KAAKO,OAASR,EAAOS,SAAW,KAAM,OAEtCR,KAAKS,aAAe,KACpBT,KAAKU,QAAU,KAAM,MAErBV,KAAKW,QAAU,MACfX,KAAKY,mBAAqB,MAE1BZ,KAAKa,wBAA0Bd,EAAOc,wBACtCb,KAAKc,eAAiB,KAEtBnB,GAAGoB,MAAMpB,GAAGqB,MAAMhB,KAAKiB,QAASjB,OAChCL,GAAGuB,QAAQvB,GAAGwB,SAASnB,KAAKoB,MAAO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